<template>
	<div class="modal">
		<div class="mask"></div>
		<div class="modal-main">
			<div class="dialog-title">
				<span v-if="!hideTitle">
					{{title}} 
				</span>
				<Timer seconds="10" :title="title"></Timer>
			</div>
			<div class="modal-body">
				<slot></slot>
			</div>
			<div class="modal-footer">
				<slot name="footer"></slot>
			</div>
		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return {
				showTitle:true
			}
		},
		
		props:['title','hideTitle']
	}
</script>

<style scoped="scoped">
	.modal-main{
		width:800px;
		height:450px;
		border:solid 2px #aeb8f;
		position: fixed;
		z-index: 200;
		left:50%;
		top:260px;
		margin-left:-400px;
		background-color: #e7eef4;
		border-radius: 15px;
	}
	
	.modal-body{
		background-color: #ffffff;
		border-bottom: solid 2px #aeb8c1;
		height:270px;
		color:#1268f9;
		font-size: 32px;
	}
	
	.modal-footer{
		height: 100px;
		display: flex;
		justify-content: center;
		align-items: center;
	}
</style>
